home *** CD-ROM | disk | FTP | other *** search
/ PC World 2006 November / PCWorld_2006-11_cd.bin / domacnost a kancelar / opencontacts / ocusetup.exe / setup.exe / {code_GetDataFolder} / Templates / defaultContacts.xsl < prev    next >
Extensible Markup Language  |  2006-10-03  |  2KB  |  85 lines

  1. ∩╗┐<?xml version="1.0" encoding="UTF-8"?>
  2.  
  3. <xsl:stylesheet version="1.0"
  4. xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  5. <xsl:output method="xml" omit-xml-declaration="yes" encoding="UTF-8" />
  6.  
  7.   <xsl:template match="/">
  8.     <html>
  9. <head>
  10. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  11. </head>
  12.  
  13.       <body style="font-size: 10pt">
  14.         <xsl:for-each select="OpenContacts/Contacts/Contact">
  15.  
  16.           <table border="0" width="100%" id="table2">
  17.             <tr>
  18.               <td width="80%">
  19.                 <font face="Times New Roman" size="3">
  20.                   <b>
  21.                     <xsl:value-of select="@Name"/>
  22.                   </b>
  23.                 </font>
  24.               </td>
  25.               <td>
  26.                 <xsl:value-of select="@Title"/>
  27.               </td>
  28.             </tr>
  29.           </table>
  30.           <div style="margin-left: 15px;">
  31.  
  32.               <xsl:value-of select="Notes"/>
  33.  
  34.  
  35.           </div>
  36.           <xsl:for-each select="Sections/Section">
  37.             <div style="margin-left: 15px;">
  38.  
  39.  
  40.               <b>
  41.                 <font face="Times New Roman" size="2">
  42.                   <xsl:value-of select="@Name"/>
  43.                 </font>
  44.               </b>
  45.             </div>
  46.  
  47.  
  48.  
  49.             <table border="0" width="100%" id="table1" cellspacing="0" cellpadding="0">
  50.               <xsl:for-each select="Fields/Field">
  51.                 <tr>
  52.                   <td width="15"></td>
  53.                   <td width="80" bgcolor="#C3D9FF">
  54.                     <font face="Times New Roman" size="2">
  55.                       <xsl:value-of select="@Name"/>:
  56.                     </font>
  57.                   </td>
  58.                   <td bgcolor="#E0ECFF">
  59.                     <font size="3">
  60.                       <xsl:value-of select="@Value"/>
  61.                     </font>
  62.                   </td>
  63.                 </tr>
  64.               </xsl:for-each>
  65.  
  66.             </table>
  67.  
  68.             <div style="margin-left: 15px;">
  69.  
  70.           <pre>
  71.                 <xsl:value-of select="Notes"/>
  72.           </pre>
  73.  
  74.  
  75.             </div>
  76.  
  77.           </xsl:for-each>
  78.  
  79.           <p>  </p>
  80.         </xsl:for-each>
  81.       </body>
  82.     </html>
  83.   </xsl:template>
  84.  
  85. </xsl:stylesheet>